<#include "include/base.ftl">
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<base href="${request.contextPath}/">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>登錄超时</title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
		<link rel="stylesheet" type="text/css" href="style/web/css/login2.css"/>
		<script type="text/javascript" src="style/web/js/jquery-1.11.2.min.js"></script>
		<script type="text/javascript" src="style/web/js/utils.js"></script>
	</head>
  
  	<body>
		
		<h1 style="color:#666;">登錄超时，<font color="red" id="timeout">3</font>秒后跳轉至登錄頁！</h1>
		
		<script type="text/javascript"> 
			var timeout = 3;
			var timer = setInterval(go,1000);
	        function go(){  
				timeout--;
				$("#timeout").text(timeout);
				if(timeout == 0){
					clearInterval(timer);
					if (window != top) {
						top.location.href="${request.contextPath}/login";
					}
					window.location.href="${request.contextPath}/login";   
				}
	        }  
	</script>  
		
	</body>
</html>